<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="author" content="wangbo">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- 内部样式 -->
  <style>
    img{
      width: 200px;height: 200px;
    }
    .c1{background-color: chartreuse;
      margin: 0px;
      float: left;
    }
    .c2{
      background-color:red; 
      margin: 0px;
      float: left;
    }
  </style>
</head>
<body>
  <!-- 行内块不会发生塌陷,行内块元素,自带的,要求必须有间隔
  哪怕将margin 这是为0 都不行,用浮动才可以紧挨
  -->
  <img class="c1"></img>
  <img class="c2"></img>
</body>
</html>